prepare s2_scheme
pre '/* s^2 - hash URI schemes'
pre '   Copyright (C) 2019 Ariadne Devos'
pre ''
pre '   This program is free software: you can redistribute it and/or modify'
pre '   it under the terms of the GNU General Public License as published by'
pre '   the Free Software Foundation, either version 3 of the License, or'
pre '   (at your option) any later version.'
pre ''
pre '   This program is distributed in the hope that it will be useful,'
pre '   but WITHOUT ANY WARRANTY; without even the implied warranty of'
pre '   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the'
pre '   GNU General Public License for more details.'
pre ''
pre '   You should have received a copy of the GNU General Public License'
pre '   along with this program.  If not, see <http://www.gnu.org/licenses/>. */'
pre ''
pre '#include <sHT/web/uri.h>'

declare scheme
# For specifications, see <sHT/web/uri.h>
# Only real URI schemes
for scheme in ipfs http https; do
	# upcase enum identifiers
	entry "$scheme" "S2_SCHEME_${scheme^^}"
done

solve
